/* pages/goods/detail.wxss */
@import "/utils/wxParse/wxParse.wxss";

page {
    background-color: #fcfaee;
}

view {
    box-sizing: border-box;
}

// 主容器样式
.detail_ {
    background-color: #fcfaee;
    word-break: break-all;
    overflow: auto;

    // 容器内样式
    .container {
        padding-bottom: 100rpx;

        // 幻灯片区域
        .section.swiper {
            swiper {
                height: 750rpx;

                swiper-item {
                    .slide-image {
                        width: 100%;
                        height: 100%;
                    }

                    .bj {
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        left: 0;
                        bottom: 0;
                    }
                }
            }
        }

        // 标题价格区域
        .m_ctr {
            float: left;
            width: 100%;
            background: #fcfaee;
            padding: 25rpx 0rpx;
            margin-bottom: 20rpx;
            font-size: 32rpx;
            display: flex;
            align-items: center;

            // 内容容器
            .m_ctt {
                float: left;
                width: 100%;
                height: auto;
                overflow: hidden;
                box-sizing: border-box;
                padding: 30rpx 30rpx 10rpx;
                position: relative;

                // 价格样式
                .goods_price {
                    width: 100%;
                    line-height: 40rpx;
                    color: #312c2f;
                    font-family:
                        Alibaba PuHuiTi 2,
                        Alibaba PuHuiTi 20;
                    font-weight: 500;
                    font-size: 48rpx;
                    color: #312c2f !important;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                    display: flex;
                    align-items: center;

                    span {
                        color: #312c2f !important;
                        font-size: 28rpx;
                        font-weight: 500;
                        margin-top: 10rpx;
                    }

                    // 普通价格
                    .ordinary_price {
                        margin-left: 10rpx;
                        font-weight: 400;
                        color: #999999;

                        .icon {
                            font-size: 22rpx;
                        }

                        .num {
                            font-size: 24rpx;
                            text-decoration: line-through;
                        }
                    }

                    // VIP标题
                    .vip_title {
                        margin-left: 24rpx;
                        display: inline-block;
                        width: 104rpx;
                        height: 40rpx;
                        background: #312c2f;
                        border-radius: 40rpx;
                        font-family:
                            Alibaba PuHuiTi 2,
                            Alibaba PuHuiTi 20;
                        font-weight: 400;
                        font-size: 24rpx;
                        color: #ffffff;
                        line-height: 40rpx;
                        text-align: center;
                        font-style: normal;
                        text-transform: none;
                    }

                    image {
                        width: 60rpx;
                        height: 28rpx;
                    }
                }

                // 加入VIP按钮
                .join_vip {
                    width: 424rpx;
                    height: 40rpx;
                    margin-top: 16rpx;
                    background: linear-gradient(97deg, #fadd9e 0%, #cda85a 100%);
                    border-radius: 8rpx;
                    display: flex;
                    align-items: center;
                    padding-left: 12rpx;
                    box-sizing: border-box;

                    .image {
                        width: 28rpx;
                        height: 28rpx;
                    }

                    .line {
                        width: 1rpx;
                        height: 24rpx;
                        background-color: #312c2f;
                        margin: 0 14rpx;
                    }

                    .text {
                        font-family:
                            Alibaba PuHuiTi 2,
                            Alibaba PuHuiTi 20;
                        font-weight: 400;
                        font-size: 24rpx;
                        color: #312c2f;
                        line-height: 24rpx;
                    }
                }

                // 价格1样式
                .goods_price1 {
                    margin-top: 20rpx;
                    width: 100%;
                    line-height: 40rpx;
                    font-family:
                        Alibaba PuHuiTi 2,
                        Alibaba PuHuiTi 20;
                    font-weight: 400;
                    font-size: 28rpx;
                    color: #312c2f;
                    display: flex;
                }

                // 标题样式
                .goods_title {
                    width: 100%;
                    line-height: 40rpx;
                    color: #312c2f;
                    font-family:
                        Alibaba PuHuiTi 2,
                        Alibaba PuHuiTi 20;
                    font-weight: 500;
                    font-size: 32rpx;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                    margin-top: 36rpx;
                }

                // 副标题样式
                .goods_subtitle {
                    width: 100%;
                    line-height: 40rpx;
                    color: #312c2f;
                    font-size: 28rpx;
                    color: #888;
                    padding: 16rpx 0;
                }

                // 分享按钮
                .goods_share_ctr {
                    position: absolute;
                    right: 30rpx;
                    top: 20rpx;
                    z-index: 2;
                    text-align: center;
                    font-size: 24rpx;
                    line-height: 36rpx;
                    background: none;
                    border: 0;

                    &::after {
                        border: 0;
                    }

                    i {
                        font-size: 40rpx;
                    }
                }

                // 已选样式
                &.yixuan {
                    .goods_cell {
                        &.wu {
                            border: 0;

                            .goods_cell_left {
                                float: left;
                                display: flex;
                                align-items: center;

                                i {
                                    font-size: 24rpx;
                                }
                            }
                        }
                    }
                }
            }

            // 商品单元样式
            .goods_cell {
                float: left;
                width: 100%;
                font-size: 28rpx;
                display: flex;
                align-items: center;
                justify-content: space-between;

                .goods_cell_left {
                    float: left;
                    display: flex;
                    align-items: center;

                    i {
                        font-size: 24rpx;
                    }
                }

                .goods_cell_right {
                    float: right;

                    i {
                        color: #999;
                    }
                }
            }
        }

        .padding_content {
            padding: 0 30rpx;
        }

        .spec_taocan_box {
            width: 100%;
            background: #fcfaee;
            box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(185, 98, 33, 0.2);
            border-radius: 20rpx;
            padding: 0 30rpx;
            margin-bottom: 30rpx;

            .item {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 20rpx 0rpx;

                &:not(:last-of-type) {
                    border-bottom: 1rpx solid #eceade;
                }

                .name {
                    font-weight: 400;
                    font-size: 28rpx;
                    color: #666666;
                    width: 90rpx;
                }

                .info {
                    width: calc(100% - 90rpx);
                    display: flex;
                    align-items: center;
                    font-weight: 400;
                    font-size: 28rpx;
                    color: #333333;

                    .t {
                        width: calc(100% - 40rpx);
                    }

                    .tt {
                        width: calc(100% - 40rpx);
                        display: flex;
                        align-items: center;
                        font-weight: 400;
                        font-size: 28rpx;
                        color: #333333;

                        .o {
                            margin-right: 10rpx;

                            text {
                                margin-left: 4rpx;
                            }
                        }
                    }

                    .icon {
                        width: 30rpx;
                        font-size: 28rpx;
                        color: #666666;
                    }
                }
            }
        }

        .user_comment_box {
            width: 100%;
            background: #fcfaee;
            box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(185, 98, 33, 0.2);
            border-radius: 20rpx;
            padding: 30rpx 30rpx;
            margin-bottom: 30rpx;

            .top_box {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding-bottom: 30rpx;
                border-bottom: 1rpx solid #eceade;

                .title {
                    font-weight: 500;
                    font-size: 32rpx;
                    color: #333333;
                }

                .more {
                    display: flex;
                    align-items: center;
                    font-weight: 400;
                    font-size: 28rpx;
                    color: #999999;
                }
            }

            .list {
                margin-top: 30rpx;
                padding-bottom: 20rpx;

                .item {
                    &:not(:last-of-type) {
                        margin-bottom: 30rpx;
                    }

                    .info_box {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;

                        .info {
                            display: flex;
                            align-items: center;

                            .pic {
                                width: 60rpx;
                                height: 60rpx;
                                margin-right: 20rpx;

                                image {
                                    width: 60rpx;
                                    height: 60rpx;
                                    border-radius: 50%;
                                }
                            }

                            text {
                                font-weight: 500;
                                font-size: 28rpx;
                                color: #333333;
                            }
                        }

                        .date {
                            font-weight: 400;
                            font-size: 24rpx;
                            color: #999999;
                        }
                    }

                    .product {
                        font-weight: 400;
                        font-size: 24rpx;
                        color: #666666;
                        margin-top: 20rpx;
                    }

                    .comment {
                        font-weight: 400;
                        font-size: 28rpx;
                        color: #333333;
                        margin-top: 10rpx;
                    }
                }
            }
        }

        // 用户评价区域
        .info_title {
            float: left;
            width: 100%;
            height: 70rpx;
            line-height: 70rpx;

            .comment_title_left {
                float: left;
            }

            .comment_title_right {
                float: right;
                color: #999;
                font-size: 28rpx;
            }
        }

        // 评论内容样式
        .comment_pic {
            margin-top: 20rpx;
            float: left;
            width: 80rpx;
            height: 80rpx;
            border-radius: 50%;

            image {
                width: 100%;
                height: 100%;
            }
        }

        .comment_name {
            margin-top: 20rpx;
            float: left;
            line-height: 80rpx;
            padding-left: 20rpx;
            font-size: 24rpx;
        }

        .comment_date {
            float: left;
            padding-bottom: 10rpx;
            color: #999;
            font-size: 24rpx;
        }

        .comment_info {
            float: left;
            width: 100%;
            font-size: 24rpx;
        }

        // 商品推荐区域
        .tuijian {
            background-color: transparent;
            padding-top: 0;
            box-sizing: border-box;
            margin-bottom: 20rpx;

            .title {
                width: 100%;
                padding: 20rpx 20rpx 30rpx;
                box-sizing: border-box;
                font-weight: 500;
                font-size: 32rpx;
                color: #333333;
            }
        }

        // 商品详情区域
        .m_ctrs {
            .info_title {
                padding: 0 30rpx;
                font-weight: 500;
                font-size: 32rpx;
                color: #333333;
            }

            .info_ctr {
                float: left;
                width: 100%;
                min-height: 100rpx;
                color: #666;
                font-size: 32rpx;
                line-height: 60rpx;
                padding: 10rpx 0;

                image {
                    max-width: 100%;
                    display: block;
                    width: 100% !important;
                }
            }
        }

        // 底部按钮区域
        .goods_foot {
            position: fixed;
            display: flex;
            align-items: center;
            width: 100%;
            height: 128rpx;
            background: #fcfaee;
            border-top: 2rpx #eee solid;
            left: 0;
            bottom: 0;
            z-index: 9;
            line-height: 98rpx;
            text-align: center;

            button {
                margin: 0;
                padding: 0;
                outline: none;
                border-radius: 0;
                background-color: transparent;
                line-height: inherit;

                &::after {
                    border: none;
                }
            }

            .goods_foot_btn {
                height: 98rpx;
                border: 0;
                position: relative;
                font-weight: 400;
                font-size: 20rpx;
                color: #333333;
                margin-left: 44rpx;

                .goods_foot_btn_img1,
                .goods_foot_btn_img2 {
                    width: 40rpx;
                    height: 40rpx;
                    margin-bottom: -2.5rpx;
                }

                .goods_foot_btn_text {
                    height: 55rpx;
                    margin: 0 auto;
                    margin-top: -50rpx;
                    font-family:
                        Alibaba PuHuiTi 2,
                        Alibaba PuHuiTi 20;
                    font-weight: 400;
                    font-size: 20rpx;
                    color: #333333;
                    text-align: center;
                    font-style: normal;
                    text-transform: none;
                    line-height: 55rpx;
                }
            }

            .cart_yuan {
                position: absolute;
                width: 40rpx;
                height: 40rpx;
                text-align: center;
                line-height: 40rpx;
                border-radius: 50%;
                color: #fff;
                right: 37rpx;
                top: -4rpx;
                z-index: 10;
                font-size: 24rpx;
            }

            .goods_foot_cart {
                width: 240rpx;
                height: 70rpx;
                background: #ECEADE;
                border-radius: 100rpx 0 0 100rpx;
                font-family:
                    Alibaba PuHuiTi 2,
                    Alibaba PuHuiTi 20;
                font-weight: 500;
                font-size: 28rpx;
                color: #333333;
                line-height: 70rpx;
                text-align: center;
                font-style: normal;
                text-transform: none;
            }

            .goods_foot_buy {
                width: 240rpx;
                height: 70rpx;
                background: #F9800F !important;
                border-radius: 0 100rpx 100rpx 0;
                font-family:
                    Alibaba PuHuiTi 2,
                    Alibaba PuHuiTi 20;
                font-weight: 500;
                font-size: 28rpx;
                color: #ffffff;
                line-height: 70rpx;
                text-align: center;
                font-style: normal;
                text-transform: none;
            }

            .goods_foot_buys {
                width: 470rpx;
                height: 70rpx;
                background: #312c2f !important;
                border-radius: 100rpx;
                font-family:
                    Alibaba PuHuiTi 2,
                    Alibaba PuHuiTi 20;
                font-weight: 500;
                font-size: 28rpx;
                color: #ffffff;
                line-height: 70rpx;
                text-align: center;
                font-style: normal;
                text-transform: none;
            }
        }
    }
}

.spec_popup {
    padding: 50rpx 30rpx 20rpx;

    .good_info {
        display: flex;
        justify-content: space-between;

        .pic {
            width: 205rpx;
            height: 205rpx;

            .image_sku {
                width: 205rpx;
                height: 205rpx;
            }
        }

        .info {
            width: calc(100% - 235rpx);

            .price {
                font-weight: 500;
                font-size: 50rpx;
                color: #333333;

                text {
                    font-weight: 500;
                    font-size: 24rpx;
                    color: #333333;
                }
            }

            .price_2 {
                font-weight: 400;
                font-size: 28rpx;
                color: #666;
                margin-bottom: 10rpx;

                text {
                    text-decoration: line-through;
                }
            }

            .num {
                font-weight: 400;
                font-size: 24rpx;
                color: #666666;
            }
        }
    }

    .sec_box {
        .list {
            .item {
                margin-top: 30rpx;

                .title {
                    font-weight: 500;
                    font-size: 32rpx;
                    color: #333333;
                }

                .sec_list {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    margin-top: 20rpx;

                    .sec_item {
                        padding: 0 20rpx;
                        height: 64rpx;
                        line-height: 62rpx;
                        border-radius: 10rpx;
                        border: 1rpx solid #ECEADE;
                        font-weight: 400;
                        font-size: 24rpx;
                        color: #333333;
                        margin-right: 30rpx;
                        margin-bottom: 20rpx;

                        &.active {
                            background: linear-gradient(90deg, #FDB722 0%, #F9800F 100%);
                            color: #FFFFFF;
                        }
                    }
                }
            }
        }
    }

    .select_num {
        margin-top: 20rpx;

        .title {
            font-weight: 500;
            font-size: 32rpx;
            color: #333333;
        }

        .num_box {
            margin-top: 20rpx;
        }
    }

    .btn_list {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 80rpx;

        .btn {
            width: 100%;
            height: 90rpx;
            line-height: 90rpx;
            background: #ECEADE;
            border-radius: 20rpx;
            font-weight: 400;
            font-size: 32rpx;
            color: #333333;
            text-align: center;

            &:nth-of-type(2) {
                margin-left: 30rpx;
            }
        }

        .btn2 {
            background: #F9800F;
            color: #FFFFFF;
        }

        .btn3 {
            background: #c1c1bd;
            color: #FFFFFF;
        }
    }
}

.share_popup {
    padding: 50rpx 30rpx;

    .list {
        display: flex;
        align-items: center;
        justify-content: space-around;

        .item {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;

            button {
                border: 1rpx solid red;
                width: 150rpx;
                height: 150rpx;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                opacity: 0;
            }

            .icon {
                width: 80rpx;
                height: 80rpx;
                border-radius: 50%;
                background-color: green;
                display: flex;
                align-items: center;
                justify-content: center;

                .iconfont {
                    color: #fff;
                    font-size: 48rpx;
                }
            }

            .icon2 {
                background-color: #e0960e;

                .iconfont {
                    color: #fff;
                    font-size: 40rpx;
                }
            }

            .name {
                font-size: 28rpx;
                color: #666;
                margin-top: 10rpx;
            }
        }
    }
}

.pic_popup {
    .share_btn {
        width: 100%;
        height: 90rpx;
        line-height: 90rpx;
        background: #e90f07;
        color: #FFFFFF;
        border-radius: 20rpx;
        font-weight: 400;
        font-size: 32rpx;
        text-align: center;
        margin-top: 20rpx;
    }
}

// 对话框样式
.dialog {
    .dialog_mask {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        background: rgba(0, 0, 0, 0.7);
        display: none;
    }

    .dialog_container {
        position: fixed;
        bottom: 0;
        width: 100%;
        background: white;
        transform: translateY(150%);
        transition: all 0.4s ease;
        z-index: 11;
        overflow: visible;
    }

    // 对话框显示状态
    &.dialog_show {
        .dialog_container {
            transform: translateY(0);
        }

        .dialog_mask {
            display: block;
        }
    }

    // 规格选择对话框内容
    .image_sku {
        width: 200rpx;
        height: 200rpx;
        z-index: 12;
        position: absolute;
        left: 20rpx;
        top: -30px;
        border-radius: 10rpx;
    }

    // 规格控制区域1
    .sku_ctr1 {
        width: 100%;
        height: auto;
        padding-top: 20rpx;
        padding-left: 236rpx;
        font-size: 24rpx;
        line-height: 36rpx;
        height: 120rpx;

        .vip {
            display: inline-block;
            background: linear-gradient(-270deg, #fff5e1 0%, #ffe2a4 100%);
            border-radius: 4rpx;
            font-family:
                Alibaba PuHuiTi 2,
                Alibaba PuHuiTi 20;
            font-weight: 400;
            font-size: 24rpx;
            color: #333333;
            line-height: 32rpx;
            padding: 4rpx 16rpx;
            margin: 4rpx 0 10rpx 0;
        }

        .detail_vip {
            width: 70rpx;
            height: 32rpx;
            margin-left: 12rpx;
        }

        .detail_shop {
            width: 100rpx;
            height: 32rpx;
            margin-left: 12rpx;
        }

        .sku_t1 {
            width: 100%;
            font-size: 40rpx;
            margin-bottom: 10rpx;
            color: #333333;
            font-weight: 500;
            display: flex;
            align-items: center;
        }

        .sku_t2 {
            font-family:
                Alibaba PuHuiTi 2,
                Alibaba PuHuiTi 20;
            font-weight: 400;
            font-size: 24rpx;
            color: #999999;
            line-height: 34rpx;
        }
    }

    .border-line {
        width: 100%;
        height: 2rpx;
        display: inline-block;
        background-color: #eee;
    }

    // 规格控制区域2
    .sku_ctr2 {
        width: 100%;
        padding: 20rpx;
        padding-top: 10rpx;
        padding-bottom: 30rpx;

        .sku_t3 {
            width: 100%;
            font-size: 32rpx;
            padding-bottom: 14rpx;
            padding-top: 6rpx;
        }

        .sku_spec1,
        .sku_spec2 {
            float: left;
            margin-right: 16rpx;
            margin-bottom: 12rpx;
            line-height: 56rpx;
            border: 1px #999 solid;
            padding: 0 20rpx;
            font-size: 28rpx;
            background: #fff;
            border-radius: 6px;
        }

        .sku_del {
            float: left;
            width: 80rpx;
            line-height: 64rpx;
            text-align: center;
            border: 1px #999 solid;
            background: #fff;
            font-size: 28rpx;
            color: #666;
            border-radius: 8rpx 0 0 8rpx;
        }

        .sku_input {
            float: left;
            width: 120rpx;
            height: 64rpx;
            line-height: 64rpx;
            text-align: center;
            border-top: 1px #999 solid;
            border-bottom: 1px #999 solid;
            background: #fff;
            font-size: 28rpx;
        }

        .sku_add {
            float: left;
            width: 80rpx;
            line-height: 64rpx;
            text-align: center;
            border: 1px #999 solid;
            background: #fff;
            font-size: 28rpx;
            color: #666;
            border-radius: 0 8rpx 8rpx 0;
        }
    }

    // 购物车和购买按钮
    .sku_cart,
    .sku_buy {
        float: left;
        width: 50%;
        line-height: 90rpx;
        font-size: 32rpx;
        color: #fff;
        text-align: center;
    }

    .sku_none {
        width: 100%;
        background: #ccc;
    }
}

// 分享对话框特殊样式
.dialog.share_pic_ctr {
    .dialog_mask {
        display: block;
    }

    .share_pic_ctt {
        position: fixed;
        top: 100rpx;
        width: 100%;
        z-index: 11;

        .share_pic {
            margin: 0 auto;
            width: 600rpx;
            height: 1000rpx;
            background: #fff;
            border-radius: 10rpx;

            image {
                width: 100%;
                display: block;
            }
        }

        .share_btn {
            margin: 0 auto;
            margin-top: 30rpx;
            width: 600rpx;
            height: 80rpx;
            line-height: 80rpx;
            color: #fff;
            text-align: center;
            border-radius: 6rpx;
            font-size: 28rpx;
        }
    }

    .image_close {
        width: 40rpx;
        height: 40rpx;
        position: absolute;
        right: 85rpx;
        top: 10rpx;
        z-index: 20;
    }
}

// 分享内容区域
.share_ctr {
    float: left;
    width: 70%;
    padding: 60rpx 15% 20rpx;

    .share_cell {
        float: left;
        margin-left: 37rpx;
        width: 200rpx;
        height: auto;
        text-align: center;

        .btn {
            float: left;
            margin: 0 50rpx;
            width: 100rpx;
            height: 100rpx;
            line-height: 100rpx;
            background: #50b674;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            i {
                color: #ffffff;
                font-size: 68rpx;
            }
        }
    }

    .share_txt {
        float: left;
        width: 100%;
        line-height: 80rpx;
        font-size: 28rpx;
        color: #666;
    }
}

// 直播悬浮按钮
.live_on_show {
    position: fixed;
    right: 20rpx;
    bottom: 160rpx;
    z-index: 9;
    width: 80rpx;
    height: 110rpx;
    border: 2rpx #eee solid;
    border-radius: 10rpx;
    background-color: rgba(255, 255, 255, 0.8);

    image {
        float: left;
        margin: 10rpx 10rpx 0;
        width: 60rpx;
        border-radius: 30rpx;
    }

    .live_on_txt {
        float: left;
        width: 100%;
        line-height: 40rpx;
        font-size: 24rpx;
        text-align: center;
    }
}

// 通用样式
.wu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xian {
    background: #fff;
    width: 100%;
    height: 1rpx;
    margin: 5rpx 0;
}

.yixuan {
    display: flex;
    align-items: center;
}

.van-stepper__input,
.van-stepper__minus,
.van-stepper__plus {
    background-color: #f8e7c2 !important;
}

@import "/style/style.wxss";